import { _decorator, Component, Animation } from 'cc';
import EvtManger from '../tools/EvtManger';
import { EventName } from '../manager/AppControll';
const { ccclass, property } = _decorator;

@ccclass('coinIntoBag')
export class coinIntoBag extends Component {
    start() {

    }

    protected onLoad(): void {
        EvtManger.on(EventName.coninIntoBag, this, () => {
            this.node.getComponent(Animation).play();
        })
    }
}


